<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>mtlb_box</title>
  </head>
  <body bgcolor="#FFFFFF">
    <center>M2SCI function</center>
    <div align="right">Last update : 08/06/2004</div>
    <p>
      <b>mtlb_box</b> - Matlab box emulation function</p>
    <h3>
      <font color="blue">Description</font>
    </h3>
    <p>There is no Scilab equivalent function for Matlab <tt>
        <b>box</b>
      </tt> but it can be easyly replaced.</p>
    <p>
    The function <tt>
        <b>mtlb_box([axes_handle[,val]])</b>
      </tt> is used by
    <tt>
        <b>mfile2sci</b>
      </tt> to replace <tt>
        <b>box([axes_handle[,va]]l)</b>
      </tt> when it was not
    possible to know what were the inputs while porting Matlab code to Scilab. This function will
    determine the correct semantic at run time. If you want to have a
    more efficient code it is possible to replace <tt>
        <b>mtlb_box</b>
      </tt> calls:
    </p>
    <dl>
      <dd>
        <b></b>
        <dd>
          <li>
            <b>
              <font color="maroon"></font>
            </b>
        When called without input parameters,
        <tt>
              <b>mtlb_box()</b>
            </tt> may be replaced by <tt>
              <b>a=gca();if a.box=="on" then a.box="off";else a.box="on";end;</b>
            </tt>
          </li>
          <li>
            <b>
              <font color="maroon"></font>
            </b>
        If <tt>
              <b>axes_handle</b>
            </tt> is a character string,
        <tt>
              <b>mtlb_box(axes_handle)</b>
            </tt> may be replaced by <tt>
              <b>a=gca();a.box=convstr(axes_handle,"l");</b>
            </tt>
          </li>
          <li>
            <b>
              <font color="maroon"></font>
            </b>
        If <tt>
              <b>axes_handle</b>
            </tt> is a graphic handle
        <tt>
              <b>mtlb_box(axes_handle)</b>
            </tt> may be replaced by 
	<tt>
              <b>if axes_handle.box=="on" then axes_handle.box="off";else axes_handle.box="on";end;</b>
            </tt>
          </li>
          <li>
            <b>
              <font color="maroon"></font>
            </b>
        If <tt>
              <b>axes_handle</b>
            </tt> is a graphic handle and <tt>
              <b>val</b>
            </tt> is a character string
        <tt>
              <b>mtlb_box(axes_handle,val)</b>
            </tt> may be replaced by <tt>
              <b>axes_handle.box=convstr(val,"l");</b>
            </tt>
          </li>
        </dd>
      </dd>
    </dl>
    <p>Caution: <tt>
        <b>mtlb_box</b>
      </tt> has not to be used for hand coded functions.</p>
    <h3>
      <font color="blue">See Also</font>
    </h3>
    <p>
      <a href="../graphics/axes_properties.htm">
        <tt>
          <b>axes_properties</b>
        </tt>
      </a>,&nbsp;&nbsp;</p>
    <h3>
      <font color="blue">Authors</font>
    </h3>
    <dl>
      <dd>
        <b></b>V.C.</dd>
    </dl>
  </body>
</html>
